<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html"/}
</head>

<body>
    
    <table id="teacher_comment_regdg">
        <thead>
            <tr>
                <th data-options="field:'ID',checkbox:true">ID</th>
                <th data-options="field:'学期ID',title:'学期名称',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        required:true,
                        valueField:'ID',
                        textField:'学期名称',
                        url:'/compent/Util/termList.html'
                    }
                },formatter:function(value,row,index){
                    return row.学期名称;
                }"></th>
                <th data-options="field:'类别',title:'类别',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        required:true,
                        url:'{:url(\'teacherCommentConf/commentTypeList?type=类别\')}'
                    }}"></th>
                <th data-options="field:'项目名称',title:'项目名称',editor:{type:'textbox',options:{required:true}}"></th>
                <th data-options="field:'项目内容',title:'项目内容',width:200,editor:{type:'textbox'},formatter: function(value, row, index) {
                    return '<span class=\'note\' title=\''+value+'\'>'+ (value?value:'') + '</span>';
                }"></th>
                <th data-options="field:'学科名称',title:'学科名称'"></th>
                <th data-options="field:'教师ID',title:'教师姓名',editor:{
                    type:'combobox',
                    options:{
                        method:'get',
                        url: '/compent/Util/teacherList.html',
                        required:true
                    }
                },formatter:function(value,row,index){
                    return row.姓名;
                }"></th>
                <th data-options="field:'获奖级别',title:'获奖级别',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        url:'{:url(\'teacherCommentConf/commentTypeList?type=获奖级别\')}'
                    }}"></th>
                <th data-options="field:'获奖等第',title:'获奖等第',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        url:'{:url(\'teacherCommentConf/commentTypeList?type=获奖等第\')}'
                    }}"></th>
                <th data-options="field:'获奖时间',title:'获奖时间',editor:{type:'datebox',options:{required:true}}"></th>
                <th data-options="field:'立项时间',title:'立项时间',editor:{type:'datebox'}"></th>
                <th data-options="field:'结题时间',title:'结题时间',editor:{type:'datebox'}"></th>
                <th data-options="field:'颁发单位',title:'颁发单位',editor:{type:'textbox'}"></th>
                <th data-options="field:'加分',title:'加分',editor:{type:'numberbox'}"></th>
                <th data-options="field:'备注',title:'备注',width:200,editor:{type:'textbox'},formatter: function(value, row, index) {
                    return '<span class=\'note\' title=\''+value+'\'>'+ (value?value:'') + '</span>';
                }"></th>
            </tr>
        </thead>
    </table>
    <div id="teacher_comment_regtb">
        <form id="teacher_comment_regForm" class="m5">
            <div>
                学期：
                <select class="form-control1" name="termId" id="termId"></select>
                类别：
                <select class="easyui-combobox" name="类别" id="类别" data-options="width:70,panelHeight:'auto',editable:false,url: '{:url(\'teacherCommentConf/commentTypeList?type=类别\')}'"></select>
                教师姓名：
                <input class="form-control1" name="teacherName" id="teacherName">
                <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('teacher_comment_reg')">查询</a>
                <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm1('teacher_comment_reg')">重置</a><br/>
            </div>
        </form>
    </div>
    <script type="text/javascript">
        $(function(){
            var url = "/teacherComment/teacher_comment_reg";
            initDatagridAdmin("teacher_comment_reg",url,1,1,1,1,1);
            termList("teacher_comment_reg");
        })  
        function resetForm1(cf){
            $("#" + cf + "Form")[0].reset();
            $("#" + cf + "Form #类别").combobox('setValue', null);
        }
    </script>
</body>
</html>